package com.xhl.controller;


import com.xhl.entity.Article;
import com.xhl.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xhlMr
 * @since 2020-07-28
 */
@RestController
@RequestMapping("/article")
public class ArticleController {

    @Autowired
    private ArticleService articleService;

    @RequestMapping("/all")
    public List<Article> queryArticleAll(){
        return articleService.list(null);
    }
}

